/**
 * 
 */
package info.niwota.fwrite;

import android.os.Handler;

/**
 * @author qiangli
 *
 */
public class StatusMonitor {
	public CharSequence message;
	
	public boolean aborted;
	public Handler handler;
	
	public void send(CharSequence message) {
		this.message = message;
		if (handler != null) {
			handler.sendEmptyMessage(0);
		}
	}
	
	public void send(int what, CharSequence message) {
		this.message = message;
		if (handler != null) {
			handler.sendEmptyMessage(what);
		}
	}
}